Menu Top
Complete Course of Mathematics
Topic 1: Numbers & Numerical Applications Topic 2: Algebra Topic 3: Quantitative Aptitude
Topic 4: Geometry Topic 5: Construction Topic 6: Coordinate Geometry
Topic 7: Mensuration Topic 8: Trigonometry Topic 9: Sets, Relations & Functions
Topic 10: Calculus Topic 11: Mathematical Reasoning Topic 12: Vectors & Three-Dimensional Geometry
Topic 13: Linear Programming Topic 14: Index Numbers & Time-Based Data Topic 15: Financial Mathematics
Topic 16: Statistics & Probability


Content On This Page
Factors and Multiples: Definition Divisibility Tests Prime and Composite Numbers
Determining if a Number is Prime Prime Factorisation


Divisibility, Factors, and Multiples



Factors and Multiples: Definition


The Concept of Divisibility

The fundamental concept that underpins factors and multiples is divisibility. For any two integers, $a$ and $b$, with $b$ being a non-zero integer ($b \neq 0$), we say that $a$ is divisible by $b$ if the result of the division $a \div b$ is an exact integer, with no remainder. This relationship can be expressed mathematically as finding an integer $k$ such that $a = b \times k$.

When an integer $a$ is divisible by a non-zero integer $b$, we can describe this relationship using several terms:

If the division of $a$ by $b$ does not result in an integer (i.e., there is a non-zero remainder), we say that $a$ is not divisible by $b$, or $b$ does not divide $a$, denoted as $b \nmid a$.

Example: Let $a=15$ and $b=5$. When we divide $15$ by $5$, the result is $15 \div 5 = 3$. Since $3$ is an integer, $15$ is divisible by $5$. We can write $5 | 15$. This also means $15 = 5 \times 3$, where $k=3$ is an integer. So, $5$ is a factor of $15$, $5$ is a divisor of $15$, and $15$ is a multiple of $5$.

Example: Let $a=10$ and $b=4$. When we divide $10$ by $4$, the result is $10 \div 4 = 2.5$, which is not an integer. Using the division algorithm, $10 = 4 \times 2 + 2$ (with a remainder of 2). So, $10$ is not divisible by $4$. We write $4 \nmid 10$. $4$ is not a factor of $10$, and $10$ is not a multiple of $4$.

Divisibility is primarily discussed in the context of integers. While the formal concepts extend to other algebraic structures, in elementary mathematics, we typically focus on integers.


Factors (or Divisors)

An integer $b$ is a factor (or divisor) of an integer $a$ if $a$ is divisible by $b$. This means that when you divide $a$ by $b$, you get an integer result with no remainder.

Formally, $b$ is a factor of $a$ if and only if there exists an integer $k$ such that $a = b \times k$.

In introductory number theory, we often focus on finding the positive factors of a positive integer.

Examples of positive factors:

Key properties of positive factors of a positive integer $n$ ($n>0$):

Note: Negative factors also exist. If $b$ is a factor of $a$, then $-b$ is also a factor of $a$. E.g., factors of 24 are $\pm 1, \pm 2, \pm 3, \pm 4, \pm 6, \pm 8, \pm 12, \pm 24$. Usually, when we say "factors" in elementary contexts, we mean positive factors.


Multiples

An integer $a$ is a multiple of an integer $b$ (where $b \neq 0$) if $a$ is divisible by $b$. This means that $a$ can be obtained by multiplying $b$ by some integer $k$.

Formally, $a$ is a multiple of $b$ if and only if there exists an integer $k$ such that $a = b \times k$.

In elementary arithmetic, we often focus on the positive multiples of a positive integer.

Examples of multiples:

Key properties of multiples of a non-zero integer $n$:


The Interdependence of Factors and Multiples

The concepts of factors and multiples describe the same mathematical relationship from two different perspectives. They are directly related through divisibility:

Example: Since $24$ is a multiple of $6$ ($24 = 6 \times 4$), it means $6$ is a factor of $24$. Conversely, since $5$ is a factor of $35$ ($35 \div 5 = 7$), it means $35$ is a multiple of $5$.

Understanding this inverse relationship is fundamental to working with concepts like prime factorization, GCD, and LCM.



Divisibility Tests

Divisibility tests are a set of convenient rules or shortcuts that allow us to quickly determine whether one integer is divisible by another integer without performing the complete long division. These tests are derived from the properties of our base-10 number system and the general properties of divisibility. They are invaluable tools for finding factors of numbers, simplifying fractions, determining if a number is prime, and working with prime factorization.

These tests are typically applied to check the divisibility of a whole number by a small integer divisor.


Detailed Divisibility Tests for Small Integers

Here are some common divisibility tests for integers:

These divisibility tests are powerful tools for analyzing numbers, especially when dealing with factorization or simplifying expressions.



Prime and Composite Numbers

Positive integers greater than $1$ are classified into two important and mutually exclusive categories based on the number of positive factors they have: prime numbers and composite numbers. This classification is fundamental in number theory and forms the basis for concepts like factorization and the study of properties of integers.


Prime Numbers

A prime number is a natural number greater than $1$ that has exactly two distinct positive factors (or divisors): the number $1$ and the number itself.

In other words, a prime number $p$ can only be divided evenly by 1 and $p$.

Let's identify the positive factors for some numbers greater than 1:

The sequence of prime numbers begins with $\mathbf{2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, ...}$

Important facts about prime numbers:


Composite Numbers

A composite number is a natural number greater than $1$ that is not a prime number. By definition, a composite number is a natural number greater than 1 that has more than two distinct positive factors.

In other words, a composite number $n$ can be divided evenly by at least one positive integer other than 1 and $n$. This means a composite number can be expressed as a product of two smaller natural numbers (each greater than 1).

Examples of composite numbers:

The sequence of composite numbers begins with $\mathbf{4, 6, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 22, 24, 25, 26, 27, 28, ...}$


The Special Status of the Number 1

The natural number $1$ is unique and holds a special status in number theory. It is neither a prime number nor a composite number. This is because its definition does not fit either category:

Thus, the set of natural numbers greater than 1 is completely partitioned into the set of prime numbers and the set of composite numbers. The number 1 stands alone.


The Fundamental Theorem of Arithmetic

This is a cornerstone theorem in number theory that highlights the central role of prime numbers. It states that every integer greater than $1$ can be uniquely expressed as a product of prime numbers.

Statement: Every integer greater than $1$ is either a prime number itself or can be uniquely expressed as a product of prime numbers, regardless of the order of the prime factors.

This theorem means that prime numbers are the multiplicative building blocks for all integers greater than 1. Any composite number can be broken down into a specific set of prime factors, and this set (including the number of times each prime appears) is unique for that number. The process of finding this prime factorization is called prime factorization.

Example: The composite number $20$ can be uniquely written as a product of primes: $20 = 2 \times 2 \times 5 = 2^2 \times 5^1$. The prime factors are 2 (appearing twice) and 5 (appearing once). No other combination of prime numbers will multiply to 20.

Example: The composite number $42$ can be uniquely written as $42 = 2 \times 3 \times 7$. The prime factors are 2, 3, and 7, each appearing once.

Example: The prime number $7$ is itself a prime, and its prime factorization is simply $7^1$.

The fundamental theorem of arithmetic is crucial for many concepts, including finding the Greatest Common Divisor (GCD) and the Least Common Multiple (LCM) of numbers, simplifying fractions, and in cryptography.



Determining if a Number is Prime

To determine whether a given integer $n$ greater than $1$ is a prime number or a composite number, we need to check if it has any positive factors other than the two trivial factors: $1$ and $n$ itself. If we find any such factor, the number $n$ is composite. If, after checking systematically, we find no such factor, then its only positive factors are $1$ and $n$, and the number $n$ is prime.

The most direct way to do this is to test for divisibility by every integer starting from $2$ up to $n-1$. However, this method is highly inefficient, especially for larger numbers. Fortunately, we can significantly optimize the process using mathematical properties.


Optimized Methods for Primality Testing

Instead of testing all integers up to $n-1$, we can dramatically reduce the range of numbers we need to check for divisibility.

Optimization Principle: If an integer $n > 1$ is composite, it must have at least one positive factor $d$ such that $1 < d \le \sqrt{n}$.

Proof of the Principle:

Let $n$ be a composite number such that $n > 1$. By definition, $n$ has at least one positive factor other than $1$ and $n$. Let $d$ be any positive factor of $n$ such that $d \neq 1$ and $d \neq n$. Since $d$ is a factor of $n$, there exists another factor $k$ such that $n = d \times k$. Because $d \neq 1$ and $d \neq n$, it must be that $k \neq n$ and $k \neq 1$. So, both $d > 1$ and $k > 1$.

Now consider the relationship between $d$ and $k$. There are three possibilities:

In every case where $n$ is composite, we have shown that there must exist at least one positive factor (other than 1 and $n$) that is less than or equal to $\sqrt{n}$.

Therefore, to check if $n$ is prime, we only need to test for divisibility by integers starting from $2$ up to $\lfloor \sqrt{n} \rfloor$, where $\lfloor \sqrt{n} \rfloor$ is the greatest integer less than or equal to the square root of $n$. If $n$ is not divisible by any integer in this range, it cannot have any factor greater than $\sqrt{n}$ either (because if it did, say factor $f > \sqrt{n}$, then $n/f$ would be a factor less than $\sqrt{n}$, and we would have found it). Thus, if $n$ has no factors in the range $[2, \lfloor \sqrt{n} \rfloor]$, its only positive factors must be $1$ and $n$, making it prime.

Further Optimization: We only need to test for divisibility by prime numbers up to $\lfloor \sqrt{n} \rfloor$. This is because if $n$ is divisible by a composite number $c$ where $1 < c \le \sqrt{n}$, then $c$ must have at least one prime factor $p$. This prime factor $p$ must be less than or equal to $c$ (since $p \le c$). Since $c$ is a factor of $n$ and $p$ is a factor of $c$, $p$ must also be a factor of $n$ (by the transitive property of divisibility). Thus, if $n$ has any composite factor $\le \sqrt{n}$, it must also have a prime factor $\le \sqrt{n}$. So, checking only prime divisors up to $\sqrt{n}$ is sufficient.


Practical Algorithm for Primality Testing

Given an integer $n > 1$, we can determine if it's prime using the optimized method:

  1. Handle the smallest prime: If $n = 2$, then $n$ is prime.
  2. Handle even numbers: If $n$ is an even number and $n > 2$, then $n$ is composite (since it is divisible by 2).
  3. If $n$ is an odd number:
    • Calculate the integer part of the square root of $n$. Let $L = \lfloor \sqrt{n} \rfloor$.
    • Test for divisibility of $n$ by all odd integers starting from $3$ up to $L$. (Testing only prime numbers in this range is more efficient if a list of primes is available, but testing all odd numbers is simpler to implement if you don't have a list of primes).
    • If $n$ is divisible by any of these odd integers, then $n$ is composite.
    • If $n$ is not divisible by any of these odd integers up to $L$, then $n$ is prime.

Example 1. Is $161$ a prime number?

Answer:

The number is 161. It is an odd integer greater than 1.

Step 3: Calculate $\lfloor \sqrt{161} \rfloor$. We know $12^2 = 144$ and $13^2 = 169$. Since $144 < 161 < 169$, $\sqrt{144} < \sqrt{161} < \sqrt{169}$, so $12 < \sqrt{161} < 13$. The greatest integer less than or equal to $\sqrt{161}$ is 12. So, $L = 12$.

We need to test for divisibility of 161 by odd integers starting from 3 up to 12. These odd integers are 3, 5, 7, 9, 11.

  • Test divisibility by 3: Sum of digits of 161 is $1+6+1 = 8$. 8 is not divisible by 3. So 161 is not divisible by 3.
  • Test divisibility by 5: The last digit of 161 is 1. It is not 0 or 5. So 161 is not divisible by 5.
  • Test divisibility by 7: Perform the division $161 \div 7$. $16 \div 7 = 2$ with remainder 2. Bring down 1 to get 21. $21 \div 7 = 3$ with remainder 0. The division is exact: $161 \div 7 = 23$.

We have found a divisor, 7, which is an odd integer $\le 12$.

Conclusion: Since 161 is divisible by 7 (in addition to 1 and 161), it has more than two positive factors. Therefore, $161$ is a composite number ($161 = 7 \times 23$).


Example 2. Is $199$ a prime number?

Answer:

The number is 199. It is an odd integer greater than 1.

Step 3: Calculate $\lfloor \sqrt{199} \rfloor$. We know $14^2 = 196$ and $15^2 = 225$. Since $196 < 199 < 225$, $14 < \sqrt{199} < 15$. The greatest integer less than or equal to $\sqrt{199}$ is 14. So, $L = 14$.

We need to test for divisibility of 199 by odd integers starting from 3 up to 14. These odd integers are 3, 5, 7, 9, 11, 13.

  • Test divisibility by 3: Sum of digits of 199 is $1+9+9 = 19$. 19 is not divisible by 3. So 199 is not divisible by 3.
  • Test divisibility by 5: The last digit of 199 is 9. It is not 0 or 5. So 199 is not divisible by 5.
  • Test divisibility by 7: Perform $199 \div 7$. $199 = 7 \times 28 + 3$. Remainder is 3, not divisible by 7.
  • Test divisibility by 9: Sum of digits is 19. 19 is not divisible by 9. So 199 is not divisible by 9.
  • Test divisibility by 11: Alternating sum of digits from right: $9 - 9 + 1 = 1$. 1 is not divisible by 11. So 199 is not divisible by 11.
  • Test divisibility by 13: Perform $199 \div 13$. $199 = 13 \times 15 + 4$. Remainder is 4, not divisible by 13.

We have tested divisibility by all odd integers from 3 up to 13. The next odd integer is 15, which is greater than $L=14$, so we stop testing.

Since 199 is not divisible by any integer in the range $[2, 14]$ (we checked 2, and then odd numbers 3, 5, 7, 9, 11, 13), it has no factors other than 1 and 199.

Conclusion: $199$ is a prime number.

This optimized method significantly reduces the number of divisions needed to check for primality, making it practical for testing smaller integers. For very large numbers (used in cryptography, for example), much more sophisticated and complex primality tests are employed.



Prime Factorisation

Prime factorization is the process of decomposing a composite number into a product of its prime numbers. The set of prime numbers that multiply together to form the original number is unique for every composite number greater than 1. This uniqueness is guaranteed by the Fundamental Theorem of Arithmetic (also known as the Unique Factorization Theorem).

The result of prime factorization is typically written as a product of prime numbers raised to their respective powers (e.g., $2^3 \times 3^2$).

Prime factorization is a cornerstone concept in number theory, providing a foundational tool for solving various problems.


Methods for Finding Prime Factorization

The goal is to find the unique set of prime numbers (with their multiplicities) that, when multiplied together, equal the given composite number.

Method 1: Factor Tree

A factor tree is a visual method to find the prime factors of a composite number. You start with the given number at the top and repeatedly break it down into pairs of factors. You continue factoring any composite factors until all the numbers at the ends of the branches are prime numbers. The prime factors are typically circled to indicate that you cannot factor them further.

Example 1. Find the prime factorization of $72$ using a factor tree.

Answer:

Start with 72 at the top. Choose any pair of factors whose product is 72. For example, we can choose 8 and 9.

Factor tree for 72, branching to 8 and 9. 8 branches to 2 and 4. 9 branches to 3 and 3. 4 branches to 2 and 2. Prime factors 2, 2, 2, 3, 3 are circled.

(Note: The image shows the number 72 at the top, branching down to 8 and 9. 8 branches down to 2 and 4. 9 branches down to 3 and 3 (3s are circled as they are prime). 4 branches down to 2 and 2 (2s are circled as they are prime). The numbers 2, 2, 2, 3, 3 are at the ends of the branches and are prime).

The prime factors identified at the end of the branches are $2, 2, 2, 3, 3$.

The prime factorization of $72$ is $2 \times 2 \times 2 \times 3 \times 3$.

Writing this in exponential form (collecting identical factors): $2^3 \times 3^2$.

The factor tree can be drawn differently depending on the initial factors chosen (e.g., starting with $2 \times 36$), but the set of prime factors at the bottom will always be the same (three 2s and two 3s), illustrating the uniqueness stated by the Fundamental Theorem of Arithmetic.

Method 2: Division Method (Repeated Division by Prime Factors)

This is a more systematic method, especially efficient for larger numbers. It involves repeatedly dividing the number by the smallest possible prime factor until the quotient becomes 1.

Steps:

  1. Write the number to be factorized. Draw a vertical line to its right.
  2. Find the smallest prime number that divides the current number exactly. Write this prime number to the left of the vertical line.
  3. Write the quotient (the result of the division) below the current number, to the right of the vertical line.
  4. Repeat steps 2 and 3 with the new quotient as the number to be divided. Continue this process until the quotient obtained is 1.
  5. The prime factors of the original number are all the prime numbers listed to the left of the vertical line.

Example 2. Find the prime factorization of $72$ using the division method.

Answer:

Divide 72 by the smallest prime factors repeatedly:

Start with 72. The smallest prime factor is 2.

72 is divisible by 2, quotient is 36.

36 is divisible by 2, quotient is 18.

18 is divisible by 2, quotient is 9.

9 is not divisible by 2. The next smallest prime factor is 3.

9 is divisible by 3, quotient is 3.

3 is divisible by 3, quotient is 1.

Stop when the quotient is 1.

Organize using the division layout:

$$ \begin{array}{c|cc} 2 & 72 \\ \hline 2 & 36 \\ \hline 2 & 18 \\ \hline 3 & 9 \\ \hline 3 & 3 \\ \hline & 1 \end{array} $$

The prime factors listed on the left of the vertical line are $2, 2, 2, 3, 3$.

The prime factorization of $72$ is $2 \times 2 \times 2 \times 3 \times 3$.

In exponential form: $\mathbf{2^3 \times 3^2}$.


Example 3. Find the prime factorization of $2904$.

Answer:

Using the division method, find the prime factors of 2904:

Smallest prime factor of 2904 is 2. $2904 \div 2 = 1452$.

Smallest prime factor of 1452 is 2. $1452 \div 2 = 726$.

Smallest prime factor of 726 is 2. $726 \div 2 = 363$.

363 is not divisible by 2. Smallest prime factor is 3 (sum of digits $3+6+3=12$, divisible by 3). $363 \div 3 = 121$.

121 is not divisible by 2, 3, 5, 7. Check primes: $121 \div 11 = 11$.

11 is divisible by 11, quotient is 1.

Organize using the division layout:

$$ \begin{array}{c|cc} 2 & 2904 \\ \hline 2 & 1452 \\ \hline 2 & 726 \\ \hline 3 & 363 \\ \hline 11 & 121 \\ \hline 11 & 11 \\ \hline & 1 \end{array} $$

The prime factors are $2, 2, 2, 3, 11, 11$.

The prime factorization of $2904$ is $2 \times 2 \times 2 \times 3 \times 11 \times 11$.

In exponential form: $\mathbf{2^3 \times 3^1 \times 11^2}$.


Uses and Applications of Prime Factorization

Prime factorization is a foundational concept with numerous applications in number theory and other areas of mathematics:

Prime factorization is a very powerful tool that underpins many other concepts and techniques in number theory and algebra, making it a core skill in mathematics.